package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.StatementItem;
import cn.wolfcode.car.business.query.StatementItemQuery;

import java.util.List;

public interface StatementItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StatementItem record);

    StatementItem selectByPrimaryKey(Long id);

    List<StatementItem> selectAll();

    int updateByPrimaryKey(StatementItem record);

    /**
     * 分页查询
     * @param qo
     * @return
     */
    List<StatementItem> selectForList(StatementItemQuery qo);

    /**
     * 先删除
     * @param statementId
     */
    void delDetailedByStatementId(Long statementId);

    /**
     * 后添加
     * @param list
     */
    void insertDetailedBatch(List<StatementItem> list);

    /**
     * 查一个
     * @param statementId
     * @return
     */
    List<StatementItem> selectById(Long statementId);
}